package com.youngjun.common.oss.expection;

import com.youngjun.common.exception.CommonExceptionType;

/**
 * @author VirgoJun
 */
public class CommonException extends RuntimeException {

    private CommonExceptionType exceptionType;

    public CommonException(CommonExceptionType exceptionType) {
        super(exceptionType.getMessage());
        this.exceptionType = exceptionType;
    }

    public CommonExceptionType getExceptionType() {
        return exceptionType;
    }

}
